package com.example.configdemo.demos.web.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

/**
 * @author Q
 * @create 2025-06-03-10:53
 */
@ConfigurationProperties(prefix = "student")
@Component//交给SpringBoot进行管理
@Data
public class Student {
    public Integer id;
    public String name;
    public Integer age;
    public List<String> dbTypes;
    public HashMap<String,String> mapTypes;
}
